<% content_for :css do %>
  <%= stylesheet_link_tag 'new_or_edit','user_logos_new' %>
<% end %>
<%= render :file => 'users/_level2_nav_bar.html', :locals => { :item => :personal_info} %>
<div id='new_user_logo'>
  <div class='left'>
    <div class='logo'>
      <%= current_user_logo_image_tag :width => 200 %>
    </div>
    <div class='other'>
      <%= link_to "✄直接裁剪该头像", edit_user_logo_url(current_user.logo) if current_user.logo %>
    </div>
  </div>
  <div class='right new_or_edit'>
    <div class='form'>
    <% form_for @logo,
         :html => {
          :id => :new_user_logo_form,
          :multipart => true
         } do |f| %>
      <dl>
        <dt>新头像：</dt>
        <dd>
          <%= f.file_field :image_file %>
          <%= f.hidden_field :user_id %>
        </dd>
      </dl>
    <% end %>      
    </div>
    <div class='buttons'>
      <%= link_to_function "上传新头像", "$('new_user_logo_form').submit()", :class => :submit %>      
      <%= link_to '返回大拼盘', user_url(current_user), :class => :return %>
    </div>  
  </div>
</div>  